#include<iostream>
using namespace std;
int size(int *p)
{
	return sizeof(p);
}
int main()
{
	int a[] = {1,2,3,4,5};
	int *p = a;
	cout<<"数组元素的大小:"<<sizeof(a)<<endl;
	cout<<"数组指针的大小:"<<sizeof(p)<<endl;
	cout<<"数组当做参数传递给函数的时候:"<<size(a)<<endl;
}
